package com.jiawa.train.common.exception;

public enum BusinessExceptionEnum {

    MEMBER_MOBILE_EXIST("手机号已存在"),
    MEMBER_MOBILE_NOT_EXIST("请先获取验证码"),
    MEMBER_MOBILE_CODE_ERROR("验证码错误"),


    PASSENGER_NOT_EXIST("乘车人不存在"),

    PASSENGER_ID_CARD_EXIST("证件已存在"),


    TRAIN_NOT_EXIST("列车不存在");



    BusinessExceptionEnum(String desc) {
        this.desc = desc;
    }

    private String desc;

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "BusinessExceptionEnum{" +
                "desc='" + desc + '\'' +
                '}';
    }
}
